import type { BaseResponse } from '../http'
import type { SysDicKeyType } from './model'

export function getBasicsInfoInfo() {
  return http.get<BaseResponse<BasicInfo>>('/client/home-page/basics-info')
}

// /system/dict/data/type/{字典类型}

export function getSystemDicValueByKey(key: SysDicKeyType) {
  return http.get<BaseResponse<string>>(`/system/config/getValueByKey/${key}`)
}
export interface BasicInfo {
  scheduleId: string
  scheduleTitle: string
  scheduleLogoUrl: string
  letterUrl?: any
  letterFileId?: any
}
